﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace web_application
{
    public partial class login_form : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            users_control UC = new users_control();
            //
            if (UC.LogIn(login_box.Text, pass_box.Text))
                status_label.Text = "OK";
            else
                status_label.Text = "NO";
            
        }
    }
}